package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the CC_HOSPAPPLY database table.
 * 
 */
@Entity
@Table(name="CC_HOSPAPPLY")
@NamedQuery(name="CcHospapply.findAll", query="SELECT c FROM CcHospapply c")
public class CcHospapply implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(allocationSize=1,name="CC_HOSPAPPLY_APPLYID_GENERATOR", sequenceName="SEQHIS")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CC_HOSPAPPLY_APPLYID_GENERATOR")
	private long applyid;

	@Temporal(TemporalType.DATE)
	@JSONField(format="yyyy/MM/dd")
	private Date adate;

	private String haname;

	private BigDecimal hdoctorid;

	private BigDecimal hmedicalid;

	@Temporal(TemporalType.DATE)
	@JSONField(format="yyyy/MM/dd")
	private Date hpdate;

	private BigDecimal hpdoctorid;

	private BigDecimal hpofficeid;

	private String hpremarks;

	private String hpsex;

	public CcHospapply() {
	}

	public long getApplyid() {
		return this.applyid;
	}

	public void setApplyid(long applyid) {
		this.applyid = applyid;
	}

	public Date getAdate() {
		return this.adate;
	}

	public void setAdate(Date adate) {
		this.adate = adate;
	}

	public String getHaname() {
		return this.haname;
	}

	public void setHaname(String haname) {
		this.haname = haname;
	}

	public BigDecimal getHdoctorid() {
		return this.hdoctorid;
	}

	public void setHdoctorid(BigDecimal hdoctorid) {
		this.hdoctorid = hdoctorid;
	}

	public BigDecimal getHmedicalid() {
		return this.hmedicalid;
	}

	public void setHmedicalid(BigDecimal hmedicalid) {
		this.hmedicalid = hmedicalid;
	}

	public Date getHpdate() {
		return this.hpdate;
	}

	public void setHpdate(Date hpdate) {
		this.hpdate = hpdate;
	}

	public BigDecimal getHpdoctorid() {
		return this.hpdoctorid;
	}

	public void setHpdoctorid(BigDecimal hpdoctorid) {
		this.hpdoctorid = hpdoctorid;
	}

	public BigDecimal getHpofficeid() {
		return this.hpofficeid;
	}

	public void setHpofficeid(BigDecimal hpofficeid) {
		this.hpofficeid = hpofficeid;
	}

	public String getHpremarks() {
		return this.hpremarks;
	}

	public void setHpremarks(String hpremarks) {
		this.hpremarks = hpremarks;
	}

	public String getHpsex() {
		return this.hpsex;
	}

	public void setHpsex(String hpsex) {
		this.hpsex = hpsex;
	}

	public CcHospapply(long applyid, Date adate, String haname, BigDecimal hdoctorid, BigDecimal hmedicalid,
			Date hpdate, BigDecimal hpdoctorid, BigDecimal hpofficeid, String hpremarks, String hpsex) {
		super();
		this.applyid = applyid;
		this.adate = adate;
		this.haname = haname;
		this.hdoctorid = hdoctorid;
		this.hmedicalid = hmedicalid;
		this.hpdate = hpdate;
		this.hpdoctorid = hpdoctorid;
		this.hpofficeid = hpofficeid;
		this.hpremarks = hpremarks;
		this.hpsex = hpsex;
	}

}